import request from "@/request/api";

//应用管理接口
//1.应用查询列表接口
export function applicationQueryList(data) {
  return request({
    url: "/eam-service-system/system/app/queryAppList",
    method: "get",
    params: data,
  });
}
//2、应用增加节点接口
export function applicationAdd(data) {
  return request({
    url: "/eam-service-system/system/app/insertApp",
    method: "post",
    data: data,
  });
}
//2、应用增加节点接口
export function applicationUpdate(data) {
  return request({
    url: "/eam-service-system/system/app/updateApp",
    method: "put",
    data: data,
  });
}
//3、应用删除接口
export function applicationDelete(data) {
  return request({
    url: "/eam-service-system/system/app/delete",
    method: "delete",
    params: data,
  });
}
//删除应用列表
export function applicationMultiDelete(data) {
  return request({
    url: "/eam-service-system/system/app/deleteList",
    method: "delete",
    params: data,
  });
}
//查询单个应用详情
export function applicationQuery(data) {
  return request({
    url: "/eam-service-system/system/app/querySingleApp",
    method: "get",
    params: data,
  });
}
//启用或停用应用
export function applicationEnableOrDeactivate(data) {
  return request({
    url: "/eam-service-system/system/app/startOrStopApp",
    method: "get",
    params: data,
  });
}
